package com.erlin.store.controller.param;

import com.erlin.common.validator.constraints.Ranges;
import com.erlin.store.constant.StoreMemberConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @date 2021/6/1 9:38 下午
 * @Author alin
 */
@Getter
@Setter
@ApiModel("新成员添加参数")
public class StoreMemberAddParam implements Serializable {
    @NotBlank
    @ApiModelProperty(value = "商户mid",required = true)
    private String storeMid;
    @NotNull
    @ApiModelProperty(value = "用户类型 1管理员 2成员 3配送员",required = true)
    @Ranges(ranges = {StoreMemberConstant.TYPE_ADMIN, StoreMemberConstant.TYPE_MEMBER, StoreMemberConstant.TYPE_DELIVERY})
    private Integer memberType;
}
